<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Report</title>
		<logic:notPresent name="back">
        	<link href="login.css" rel="stylesheet" type="text/css">
        </logic:notPresent>
        <logic:present name="back">
        	<link href="form/login.css" rel="stylesheet" type="text/css">
        </logic:present>
	</head>
	<body>
		<logic:notPresent name="userid" scope="session">
           	<logic:redirect forward="login_error"></logic:redirect>
		</logic:notPresent>
		<logic:present name="admin" scope="session">
			<logic:redirect forward="illegal_access"></logic:redirect>
		</logic:present>
		<logic:present name="ban" scope="session">
			<logic:redirect forward="ban_error"></logic:redirect>
		</logic:present>
    	<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
			</div>
			<div class="content">
                <h1>Report To The Administrator</h1>
                <p>
                    <html:link action="prePoster">back</html:link>
                    <html:form action="/report">
						reason : <br/><html:textarea property="reason" cols="80" rows="6"/><html:errors property="reason"/><br/>
						<%
							request.getSession().setAttribute("reportid", request.getParameter("posterid"));
						%>
						<html:submit/><html:cancel/>
					</html:form>
				</p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>   
	</body>
</html>